<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../utils.js"></script>
</head>
<body>
    <button onclick="sendMsg()">发送请求</button>
    <script>
        function sendMsg () {
            utils.get('http://localhost/day30-ajax-promise/code/01.php', null, resp => {
                console.log(resp)
            })
        }
    </script>
</body>
</html>